<script setup lang="ts">
import { updateParams } from "@/components/Overlay/hooks/useUtils";
import WinDetail from "@/views/chkNum/wrapper/components/WinDetail.vue";
import useFetchWinRes, {
  useFetchWinResRefs
} from "@/views/drawHist/hooks/useFetchWinRes";
const route = useRoute();
const id = route.params.id;

const { winResParams, winResList } = useFetchWinResRefs();
const { fetchWinRes } = useFetchWinRes();
onMounted(() => {
  updateParams(
    {
      draw_id: id
    },
    winResParams.value
  );
  fetchWinRes();
});
</script>
<template>
  <div>
    <WinDetail :res-item="winResList" />
  </div>
</template>
